package com.baiyue.service;

import com.baiyue.entity.TollRules;
import com.baiyue.model.SelectOptionsResult;
import com.baiyue.model.tollRules.TollRulesDataRequest;
import com.baiyue.model.tollRules.TollRulesDataResponse;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 *
 * @author 伍波
 * @date 2024-04-30
 */
public interface TollRulesService {
    /**
     * 新增计费规则
     * @param request
     */
    void insertTollRules(TollRulesDataRequest request);

    /**
     * 修改计费规则
     * @param request
     * @return
     */
    Boolean updateTollRules(TollRulesDataRequest request);

    /**
     * 删除计费规则
     * @param request
     * @return
     */
    Boolean deleteTollRules(TollRulesDataRequest request);

    /**
     * 分页查询计费规则信息
     * @param request
     * @return
     */
    Page<TollRulesDataResponse> findByPage(TollRulesDataRequest request);

    /**
     * 根据id查询计费信息
     * @param request
     * @return
     */
    TollRulesDataResponse findById(TollRulesDataRequest request);

    /**
     * 获取下拉列表
     * @return
     */
    List<SelectOptionsResult> selectOptions();
}
